package org.itboys.mobile.entity.mysql.product;



import com.fasterxml.jackson.annotation.JsonIgnore;
import org.itboys.admin.dto.lasted.SundayUploadDto;

import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 作者：jiangxiong
        * 日期：2017年5月8日
        * 联系方式 ：empty90911@126.com
        * 描述：圣代_商品_实体。如果字段不够请自行扩展。不需要继承此类！！！！！！！！！！！！
        * 当前商品为单规格。如果需要多规格，请自行扩展
        */
public class SundayProduct extends BaseMySqlEntity {
	
	//基础属性
	private String name;//商品名称
    private String viceName;//商品副标题
    private String number;//商品编号唯一
    private Long categoryId;//分类ID
    private String categoryName;//分类名称，不储存
    private String standard;//商品物规格
    private BigDecimal marketPrice;//市场价。仅作参考
    private BigDecimal price;//零售价（或积分价格）。
    private String desc;//商品描述。图文
    private Integer type;//1商城商品，2积分商品
    private String image;//商品主图
    List<SundayUploadDto> rollImages;//轮播图
    private Integer saleNumber;//销量
    private Integer status;//状态。0已下架，1已上架
    //xx 项目的扩展字段。
   // private BigDecimal wholesalePrice;//批发价。门店批发使用此价格。2017年8月25日。门店统计营收时使用，作为成本
    private BigDecimal costPrice;//门店统计营收时使用，作为成本
    private Integer isIndexRecommend;//是否首页推荐。0否，1是
    private Integer store;//库存。按照商品规格或其他因素决定，不存储。
    //pos属性
    private String itemCode;//pos的商品码，用来同步线上订单
    @JsonIgnore
    private Integer isExistPos;//商品是否和pos中商品对应。
   // private BigDecimal retailPrice;//商品零售价。门店统计收益使用。不做存储，不做展示，只做系统内容数据过度
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getViceName() {
        return viceName;
    }

    public void setViceName(String viceName) {
        this.viceName = viceName;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public List<SundayUploadDto> getRollImages() {
        return rollImages;
    }

    public void setRollImages(List<SundayUploadDto> rollImages) {
        this.rollImages = rollImages;
    }

    public Integer getSaleNumber() {
        return saleNumber;
    }

    public void setSaleNumber(Integer saleNumber) {
        this.saleNumber = saleNumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /*public BigDecimal getWholesalePrice() {
        return wholesalePrice;
    }

    public void setWholesalePrice(BigDecimal wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }*/

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public Integer getIsIndexRecommend() {
        return isIndexRecommend;
    }

    public void setIsIndexRecommend(Integer isIndexRecommend) {
        this.isIndexRecommend = isIndexRecommend;
    }

  /*  public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }*/

    public Integer getStore() {
        return store;
    }

    public void setStore(Integer store) {
        this.store = store;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public Integer getIsExistPos() {
        return isExistPos;
    }

    public void setIsExistPos(Integer isExistPos) {
        this.isExistPos = isExistPos;
    }
}
